#include <stdio.h>
#include <string.h>
//实现一行字符串逆序
void str_revese(char* left, char* right);
int main()
{
    char str[100]={0};
    int sz = 0;
//    scanf("%s", str);
    gets(str);
//    printf("%s",str);
    sz = strlen(str);
    char* left = str;
    char* right = str + sz -1;
//    printf("%p , %p , %p\n", str, left, right);
    str_revese(left, right);
    printf("%s",str);
    return 0;
}

void str_revese(char* left, char* right)
{
    while(left < right)
    {
        char temp = *left;
        *left = *right;
        *right = temp;
        left++;
        right--;
    }
}